﻿@inherits Vowei.Web.G18nWebViewPage<Vowei.Core.Models.Task>
@using System.Web.Mvc.Html 
@using Vowei.Core.Models
@using Vowei.Web.Helpers

@{
    ViewBag.Title = Model.Title;
    
}
<h2>@Model.Title</h2>

<fieldset>
    <legend>@string.Format(T("任务 #{0} 详细信息"), Model.ID)</legend>
                
    <div class="display-label">@T(m => m.AssignedTo)</div>
    <div class="display-field">@Model.AssignedTo</div>

    <div class="display-label">@T(m => m.Status)</div>
    <div class="display-field">@Model.Status</div>
    
    <div class="display-label">@T(m => m.Progress)</div>
    <div class="display-field">@T(Model.Progress)</div>
        
    <div class="display-label">@T(m => m.StartDate)</div>
    <div class="display-field">@T(Model.StartDate)</div>
        
    <div class="display-label">@T(m => m.DueDate)</div>
    <div class="display-field">@T(Model.DueDate)</div>
                                
    <div class="display-label">@T(m => m.OpenDate)</div>
    <div class="display-field">@T(Model.OpenDate)</div>
        
    <div class="display-label">@T(m => m.ClosedDate)</div>
    <div class="display-field">@T(Model.ClosedDate)</div>
        
    <div class="display-label">@T(m => m.Reporter)</div>
    <div class="display-field">@Model.Reporter</div>
        
    <div class="display-label">@T(m => m.Description)</div>
    <div class="display-field">@Html.Raw(Model.Description)</div>
    
    <div class="display-label">@T("上层需求")</div>
    <div class="display-field">
    @{
        var requirement = ViewData["UpRequirement"] as Requirement;
        if ( requirement != null )
        {
           <a href="/Requirement/Details/@requirement.ID">@requirement.Title</a>
        }
     }
    </div>

    <div class="display-label">@T(m => m.LastModified)</div>
    <div class="display-field">@T(Model.LastModified)</div>
</fieldset>

<p>
    @Html.ActionLink(T("编辑"), "Edit", new { id = Model.ID })
</p>
        
@Html.Partial("_CommentPartial", Model)